package com.audaque.springboot.foshanupload.security.model;

import com.audaque.springboot.foshanupload.authcore.model.currentUser.TransmittableThreadLocalCurrentUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Set;

/**
 * @author zgb
 * @desc ...
 * @date 2022-08-05 17:34:39
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MyUserDetail extends TransmittableThreadLocalCurrentUser implements UserDetails {
    private static final long serialVersionUID = -1242493306307174690L;
    //权限集合
    private Set<MyGrantedAuthority> authorities;

    private boolean accountNonExpired;

    private boolean accountNonLocked;

    private boolean credentialsNonExpired;

    private boolean enabled;

}
